//
//  WDMaterListCell.m
//  Zhihuijinfu
//
//  Created by 王笛 on 2017/3/1.
//  Copyright © 2017年 王笛. All rights reserved.
//

#import "WDMaterListCell.h"
#import "WDMaterial_List.h"

@interface WDMaterListCell ()
@property (weak, nonatomic) IBOutlet UIImageView *materImageView;

@end

@implementation WDMaterListCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setMaterial:(WDMaterial_list *)material
{
    _material = material;
    
    [self.materImageView sd_setImageWithURL:[NSURL URLWithString:material.small_image_url] placeholderImage:[UIImage imageWithColor:ColorForRGB(0xf1f1f1)]];
}

@end
